<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人中心 - 人才职业生涯规划平台</title>
    <link rel="stylesheet" href="../css/style.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
    <link rel="stylesheet" href="../css/profile.css">
    <style>
        /* --- 基础变量覆盖 (可选，如果 style.css 的不够用) --- */
        :root {
            --profile-bg-color: #f8f9fa; /* 更柔和的页面背景 */
            --profile-card-bg: #ffffff;
            --profile-header-bg: linear-gradient(to bottom, #5c6bc0, #3f51b5); /* 渐变头部背景 */
            --profile-text-primary: #212529;
            --profile-text-secondary: #6c757d;
            --profile-icon-color: #495057;
            --profile-border-color: #dee2e6; 
            --profile-soft-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
            --profile-stronger-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
            --profile-radius-lg: 16px;
            --profile-radius-md: 12px;
            --profile-radius-sm: 8px;
        }

        body {
            background-color: var(--profile-bg-color);
        }

        .app-container.profile-page {
             max-width: var(--content-max-width, 450px); /* 保持宽度限制 */
             background-color: var(--profile-bg-color);
             box-shadow: none; /* 移除外层阴影，让模块阴影更突出 */
        }

        /* --- 头部优化 --- */
        .profile-header-new {
            background: var(--profile-header-bg);
            color: white;
            padding: 25px 20px 20px; 
            border-bottom-left-radius: var(--profile-radius-lg);
            border-bottom-right-radius: var(--profile-radius-lg);
            margin-bottom: -10px; /* 让数据概览部分稍微上移重叠 */
            position: relative;
            z-index: 1;
        }
        .user-info-top {
            align-items: flex-start; 
        }
        .user-details-main .user-name {
            font-size: 22px;
            font-weight: 600;
            margin-bottom: 6px;
        }
        .user-details-main .user-status {
            font-size: 13px;
            opacity: 0.9;
            background-color: rgba(255, 255, 255, 0.15);
            padding: 3px 8px;
            border-radius: var(--profile-radius-sm);
            display: inline-block;
            cursor: pointer;
            margin-bottom: 6px;
        }
        .user-details-main .user-school {
            font-size: 14px;
            opacity: 0.8;
        }
        .avatar-container-new .avatar-new {
            width: 65px;
            height: 65px;
            border: 3px solid rgba(255, 255, 255, 0.5);
        }
        .edit-avatar-new {
            background-color: rgba(0, 0, 0, 0.3);
            color: white;
            width: 24px;
            height: 24px;
            font-size: 14px;
            bottom: 5px;
            right: 0px;
        }
        .profile-actions-icons {
            position: absolute;
            top: 15px;
            right: 15px;
        }
        .action-icon-btn {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border-radius: 50%;
            width: 36px;
            height: 36px;
            font-size: 18px;
            margin-left: 8px;
        }
        .action-icon-btn:hover {
             background: rgba(255, 255, 255, 0.2);
        }

        /* --- 数据概览优化 --- */
        .data-overview-new {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            background-color: var(--profile-card-bg);
            padding: 15px;
            margin: 0 15px 15px; /* 调整外边距 */
            border-radius: var(--profile-radius-md);
            box-shadow: var(--profile-soft-shadow);
            position: relative;
            z-index: 2;
        }
        .data-item {
            text-align: center;
            padding: 10px 5px;
            border-radius: var(--profile-radius-sm);
            transition: background-color 0.3s ease;
        }
        .data-item:hover {
            background-color: #f8f9fa;
        }
        .data-item h3 {
            font-size: 20px;
            font-weight: 600;
            color: var(--profile-text-primary);
            margin-bottom: 3px;
        }
        .data-item p {
            font-size: 13px;
            color: var(--profile-text-secondary);
        }

        /* --- 模块通用优化 --- */
        .main-content-profile {
             padding: 15px; /* 恢复或设置主内容区域 padding */
        }
        .module {
            background-color: var(--profile-card-bg);
            border-radius: var(--profile-radius-md);
            box-shadow: var(--profile-soft-shadow);
            margin-bottom: 15px;
            overflow: hidden;
            border: none; /* 移除可能存在的边框 */
        }
        .module-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--profile-text-primary);
            padding: 18px 15px 12px; /* 微调标题padding */
            margin: 0;
            border-bottom: 1px solid #f1f3f5; /* 更柔和的分割线 */
        }

        /* --- 核心功能区优化 --- */
        /* 样式已合并到 .service-grid 和 .service-item，移除独立样式 */
        /* .core-functions { ... } */
        /* .core-functions .module-grid { ... } */
        /* .core-functions .grid-item { ... } */
        /* .core-functions .grid-icon { ... } */
        /* .core-functions .grid-item span { ... } */
        /* 移除旧的图标颜色设置 */
        /* .core-functions .resume-icon { ... } */
        /* ... etc ... */

        /* --- 服务/帮助列表优化 (修改为宫格布局) --- */
        .service-grid {
             gap: 15px 10px; /* 垂直间距稍大，水平间距稍小 */
             padding: 20px 15px; /* 调整内边距 */
             display: grid;
             grid-template-columns: repeat(4, 1fr); /* 默认4列 */
        }
        .service-item {
             padding: 12px 5px; /* 调整服务项内边距 */
             text-decoration: none;
             color: var(--profile-text-primary);
             transition: background-color 0.3s ease;
             border-bottom: none; /* 确保移除边框 */
             display: flex; /* 改回 flex */
             flex-direction: column; /* 改为垂直排列 */
             align-items: center; /* 水平居中 */
             text-align: center; /* 文字居中 */
             border-radius: var(--profile-radius-sm);
        }
        .service-item:not(:last-child) {
             border-bottom: none; /* 确保移除边框 */
        }
        .service-item:hover {
            background-color: #f8f9fa;
        }

        /* 新增：图标包裹样式 */
        .service-icon-wrapper {
            width: 52px; /* 略微增大尺寸 */
            height: 52px;
            border-radius: 16px; /* 更大的圆角，接近 squircle */
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 10px; /* 增加与文字间距 */
            background-color: #f0f0f0; /* 默认背景色 */
            /* border: 1px solid rgba(0, 0, 0, 0.03); */ /* 可选：添加极细边框 */
            transition: transform 0.2s ease-out; /* 添加轻微交互效果 */
        }
        .service-item:hover .service-icon-wrapper {
             transform: scale(1.05); /* 悬停时图标放大一点 */
        }

        /* 为不同服务图标添加更柔和/现代的背景色 */
        .resume-bg { background-color: #d1f7c4; } 
        .intention-bg { background-color: #fff0c2; }
        .history-bg { background-color: #d6eafd; } 
        .followed-bg { background-color: #f1dff7; }
        .assessment-bg { background-color: #cff6fc; } 
        .learning-bg { background-color: #fff9c4; }
        .consulting-bg { background-color: #fddde6; }
        .registration-bg { background-color: #d7f7df; }
        .feedback-bg { background-color: #ffdee0; }
        .faq-bg { background-color: #d6eafd; }
        .contact-bg { background-color: #e7e0fc; }

        .service-item .list-icon {
             font-size: 26px; /* 调整图标大小 */
             color: inherit; /* 保持继承 */
        }
        /* 调整特定图标颜色以适应新背景 */
        .resume-bg .list-icon { color: #388e3c; }
        .intention-bg .list-icon { color: #ffa000; }
        .history-bg .list-icon { color: #1976d2; }
        .followed-bg .list-icon { color: #8e24aa; }
        .assessment-bg .list-icon { color: #00796b; }
        .learning-bg .list-icon { color: #fbc02d; }
        .consulting-bg .list-icon { color: #d81b60; }
        .registration-bg .list-icon { color: #43a047; }
        .feedback-bg .list-icon { color: #c62828; }
        .faq-bg .list-icon { color: #1976d2; } /* 与 history 一致 */
        .contact-bg .list-icon { color: #5e35b1; }

        .service-item span {
             font-size: 13px; /* 保持字体大小 */
             color: #495057; /* 稍微加深文字颜色 */
             line-height: 1.3; /* 调整行高 */
        }
        /* 移除箭头样式 */
        /* .service-item .arrow-icon { ... } */

        /* --- 帮助与反馈列表优化 --- */
        /* 样式已合并到 .service-grid 和 .service-item，移除独立样式 */
        /* .help-section .service-list { ... } */
        /* .help-section .service-item { ... } */
        /* ... (移除其他 .help-section 相关样式) ... */

        /* --- 横向布局优化调整 --- */
        @media (min-width: 600px) {
            .main-content-profile {
                padding-left: 20px;
                padding-right: 20px;
            }
            /* 移除 .side-by-side-modules 相关样式 */
            /* .side-by-side-modules { ... } */
            /* .side-by-side-modules > .module { ... } */
            
             /* 可以让数据概览也参与横向布局 */
            .data-overview-new {
                 grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
            }
            /* 移除 .core-functions 相关调整 */
            /* .core-functions .module-grid { ... } */
            
            /* 可以调整服务宫格在宽屏下的列数 */
            .service-grid {
                grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); /* 响应式列数 */
            }
        }
    </style>
    <style>
        /* --- 新增：模态框样式 --- */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色遮罩 */
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000; /* 确保在最上层 */
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .modal-overlay.visible {
            opacity: 1;
        }

        .modal-content {
            background-color: white;
            padding: 20px 25px;
            border-radius: var(--profile-radius-md, 12px);
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
            width: 90%;
            max-width: 380px; /* 限制最大宽度 */
            transform: scale(0.95);
            transition: transform 0.3s ease;
        }
        .modal-overlay.visible .modal-content {
            transform: scale(1);
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }
        .modal-header h2 {
            font-size: 18px;
            font-weight: 600;
            margin: 0;
        }
        .close-btn {
            background: none;
            border: none;
            font-size: 24px;
            font-weight: bold;
            color: #aaa;
            cursor: pointer;
            padding: 0;
            line-height: 1;
        }
        .close-btn:hover {
             color: #666;
        }

        .modal-body p {
            font-size: 14px;
            color: var(--profile-text-secondary, #6c757d);
            margin-bottom: 15px;
        }

        .status-options {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 20px;
        }
        .status-option {
            display: flex;
            align-items: center;
            padding: 12px 15px;
            border: 1px solid var(--profile-border-color, #dee2e6);
            border-radius: var(--profile-radius-sm, 8px);
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 15px;
        }
        .status-option i {
            margin-right: 10px;
            font-size: 18px;
            color: var(--profile-icon-color, #495057);
        }
        .status-option:hover {
             background-color: #f8f9fa;
             border-color: #ced4da;
        }
        .status-option.selected {
            background-color: #e9f3ff; /* 选中背景色 */
            border-color: var(--primary-color, #3f51b5); /* 主色调边框 */
            color: var(--primary-color, #3f51b5);
            font-weight: 500;
        }
        .status-option.selected i {
            color: var(--primary-color, #3f51b5);
        }

        .modal-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 10px;
        }
        /* 简单按钮样式，可复用或自定义 */
        .btn {
            padding: 8px 18px;
            border-radius: var(--profile-radius-sm, 8px);
            font-size: 14px;
            cursor: pointer;
            border: 1px solid transparent;
            transition: background-color 0.3s ease;
        }
        .btn-primary {
            background-color: var(--primary-color, #3f51b5);
            color: white;
            border-color: var(--primary-color, #3f51b5);
        }
        .btn-primary:hover {
            opacity: 0.9;
        }
        .btn-secondary {
            background-color: #f8f9fa;
            color: var(--profile-text-secondary, #6c757d);
            border-color: #dee2e6;
        }
        .btn-secondary:hover {
            background-color: #e9ecef;
        }
    </style>
</head>
<body>
    <div class="app-container profile-page">
        <!-- 头部个人信息区 -->
        <header class="profile-header-new">
            <div class="user-info-top">
                <div class="user-details-main">
                    <h1 class="user-name">张同学</h1>
                    <p class="user-status">点击编辑求职状态 <i class="bi bi-pencil-square"></i></p>
                    <p class="user-school">北京大学 · 计算机科学与技术</p>
                </div>
                <div class="avatar-container-new">
                    <img src="../img/user-avatar.jpg" alt="用户头像" class="avatar-new" data-category="avatar">
                    <div class="edit-avatar-new">
                         <i class="bi bi-camera"></i>
                    </div>
                </div>
            </div>
            <div class="profile-actions-icons">
                 <button class="action-icon-btn" id="scanBtn" aria-label="扫一扫">
                     <i class="bi bi-qr-code-scan"></i>
                 </button>
                 <button class="action-icon-btn" id="settingsBtn" aria-label="设置">
                     <i class="bi bi-gear"></i>
                 </button>
            </div>
        </header>

        <!-- 数据概览 -->
        <section class="data-overview-new">
            <div class="data-item" id="communications">
                <h3>15</h3>
                <p>沟通过</p>
            </div>
            <div class="data-item" id="applications">
                <h3>28</h3>
                <p>已投递</p>
            </div>
            <div class="data-item" id="favorites">
                <h3>8</h3>
                <p>收藏</p>
            </div>
            <div class="data-item" id="interviews">
                <h3>2</h3>
                <p>面试</p>
            </div>
        </section>

        <!-- 主内容区 -->
        <main class="main-content-profile">

            <!-- 核心功能区 (类BOSS直聘) -->
            <!-- <section class="module core-functions"> ... </section> --> <!-- 移除核心功能区，内容已合并到下方 -->

            <!-- 我的服务 -->
            <section class="module service-section">
                <h2 class="module-title">我的服务与工具</h2> <!-- 修改标题 -->
                <div class="service-grid"> 
                    <!-- 合并核心功能项 -->
                    <a href="#resume" class="service-item"> <!-- 修改 class -->
                        <div class="service-icon-wrapper resume-bg"> <!-- 添加 wrapper 和 bg class -->
                            <i class="bi bi-file-earmark-text list-icon resume-icon"></i> <!-- 修改 class -->
                        </div>
                        <span>我的简历</span>
                    </a>
                    <a href="#intentions" class="service-item">
                        <div class="service-icon-wrapper intention-bg">
                            <i class="bi bi-bullseye list-icon intention-icon"></i>
                        </div>
                        <span>求职意向</span>
                    </a>
                    <a href="#history" class="service-item">
                        <div class="service-icon-wrapper history-bg">
                            <i class="bi bi-clock-history list-icon history-icon"></i>
                        </div>
                        <span>浏览足迹</span>
                    </a>
                    <a href="#followed" class="service-item">
                        <div class="service-icon-wrapper followed-bg">
                            <i class="bi bi-building list-icon followed-icon"></i>
                        </div>
                        <span>关注公司</span>
                    </a>
                    <!-- 原有服务项 -->
                    <a href="#assessment" class="service-item">
                        <div class="service-icon-wrapper assessment-bg">
                            <i class="bi bi-clipboard-data list-icon assessment-icon"></i>
                        </div>
                        <span>职业评估</span>
                    </a>
                    <a href="#learning" class="service-item">
                         <div class="service-icon-wrapper learning-bg">
                            <i class="bi bi-book list-icon learning-icon"></i>
                         </div>
                        <span>学习资源</span>
                    </a>
                    <a href="#consulting" class="service-item">
                         <div class="service-icon-wrapper consulting-bg">
                             <i class="bi bi-headset list-icon consulting-icon"></i>
                         </div>
                        <span>预约咨询</span>
                    </a>
                     <a href="#my-registrations" class="service-item">
                         <div class="service-icon-wrapper registration-bg">
                             <i class="bi bi-calendar-check list-icon registration-icon"></i>
                         </div>
                        <span>我的报名</span>
                    </a>
                    <!-- 移动并修改帮助与反馈项 -->
                    <a href="#feedback" class="service-item">
                        <div class="service-icon-wrapper feedback-bg"> <!-- 添加 wrapper 和 bg class -->
                            <i class="bi bi-pencil-square list-icon feedback-icon"></i>
                        </div>
                        <span>意见反馈</span>
                    </a>
                    <a href="#faq" class="service-item">
                        <div class="service-icon-wrapper faq-bg"> <!-- 添加 wrapper 和 bg class -->
                            <i class="bi bi-question-circle list-icon faq-icon"></i>
                        </div>
                        <span>常见问题</span>
                    </a>
                    <a href="#contact" class="service-item">
                         <div class="service-icon-wrapper contact-bg"> <!-- 添加 wrapper 和 bg class -->
                             <i class="bi bi-telephone list-icon contact-icon"></i>
                         </div>
                        <span>联系客服</span>
                    </a>
                </div>
            </section>

            <!-- 帮助与反馈 -->
            <!-- <section class="module help-section"> ... </section> --> <!-- 移除整个帮助与反馈模块 -->
            
            <!-- 原有模块 (暂时注释掉或后续整合) -->
            <!-- 
            <section class="module career-assessment"> ... </section>
            <section class="module resume-center"> ... </section>
            <section class="module job-progress"> ... </section>
            <section class="module registration-list"> ... </section>
             -->

        </main>

        <!-- 底部导航栏 -->
        <footer class="tab-bar">
            <a href="../index.html" class="tab-item">
                <i class="bi bi-house-door"></i>
                <span>首页</span>
            </a>
            <a href="discover.html" class="tab-item">
                <i class="bi bi-compass"></i>
                <span>发现</span>
            </a>
            <a href="agents.html" class="tab-item">
                 <i class="bi bi-person-rolodex"></i>
                <span>经纪人</span>
            </a>
            <a href="profile.html" class="tab-item active">
                <i class="bi bi-person-fill"></i>
                <span>我的</span>
            </a>
        </footer>
    </div>

    <script src="../js/profile.js"></script>
    <script>
        // Simple navigation for footer
        document.querySelectorAll('.tab-bar .tab-item').forEach(tab => {
            tab.addEventListener('click', function(e) {
                // Basic navigation, assumes files are in correct relative paths
                // e.preventDefault(); // Prevent default if using JS routing
                // window.location.href = this.getAttribute('href'); 
            });
        });
        // Initialize profile specific JS
        if (typeof initProfilePage === 'function') {
            initProfilePage();
        }
    </script>

    <!-- 新增：求职状态编辑模态框 -->
    <div class="modal-overlay" id="statusModalOverlay" style="display: none;">
        <div class="modal-content status-modal">
            <div class="modal-header">
                <h2>编辑求职状态</h2>
                <button class="close-btn" id="closeStatusModalBtn">&times;</button>
            </div>
            <div class="modal-body">
                <p>请选择您当前的求职状态：</p>
                <div class="status-options">
                    <div class="status-option" data-status="在校-暂不考虑">
                         <i class="bi bi-mortarboard"></i> 在校-暂不考虑
                    </div>
                    <div class="status-option" data-status="在校-寻找实习">
                         <i class="bi bi-briefcase"></i> 在校-寻找实习
                    </div>
                    <div class="status-option" data-status="在校-寻找全职">
                         <i class="bi bi-building"></i> 在校-寻找全职
                    </div>
                    <div class="status-option" data-status="离校-正在找工作">
                         <i class="bi bi-search"></i> 离校-正在找工作
                    </div>
                     <div class="status-option" data-status="已找到工作">
                         <i class="bi bi-check-circle"></i> 已找到工作
                    </div>
                     <div class="status-option" data-status="保密">
                         <i class="bi bi-eye-slash"></i> 保密
                    </div>
                </div>
            </div>
            <div class="modal-actions">
                <button class="btn btn-secondary" id="cancelStatusBtn">取消</button>
                <button class="btn btn-primary" id="confirmStatusBtn">确定</button>
            </div>
        </div>
    </div>

</body>
</html> 